package com.itheima.bakery.demos.web.Repositories;
import org.springframework.stereotype.Repository;
import com.itheima.bakery.demos.web.model.ShippingAddress;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.List;
@Repository
public interface ShippingAddressRepository extends JpaRepository<ShippingAddress, Integer> {
    // 根据用户ID查找收货地址
    List<ShippingAddress> findByUserId(Integer userId);
}
